package pe.gob.onpe.facade.local;

import java.util.List;
import javax.ejb.Local;

import pe.gob.onpe.ejb.ParametroCedulaTipoEleccion;
import pe.gob.onpe.ejb.id.ParametroCedulaTipoEleccionId;


/**
 * Local interface for ParametroCedulaTipoEleccionFacade.
 * 
 * @author MyEclipse Persistence Tools
 */
@Local
public interface ParametroCedulaTipoEleccionFacadeLocal {
	/**
	 * Perform an initial save of a previously unsaved
	 * ParametroCedulaTipoEleccion entity. All subsequent persist actions of
	 * this entity should use the #update() method.
	 * 
	 * @param entity
	 *            ParametroCedulaTipoEleccion entity to persist
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void save(ParametroCedulaTipoEleccion entity);

	/**
	 * Delete a persistent ParametroCedulaTipoEleccion entity.
	 * 
	 * @param entity
	 *            ParametroCedulaTipoEleccion entity to delete
	 * @throws RuntimeException
	 *             when the operation fails
	 */
	public void delete(ParametroCedulaTipoEleccion entity);

	/**
	 * Persist a previously saved ParametroCedulaTipoEleccion entity and return
	 * it or a copy of it to the sender. A copy of the
	 * ParametroCedulaTipoEleccion entity parameter is returned when the JPA
	 * persistence mechanism has not previously been tracking the updated
	 * entity.
	 * 
	 * @param entity
	 *            ParametroCedulaTipoEleccion entity to update
	 * @returns ParametroCedulaTipoEleccion the persisted
	 *          ParametroCedulaTipoEleccion entity instance, may not be the same
	 * @throws RuntimeException
	 *             if the operation fails
	 */
	public ParametroCedulaTipoEleccion update(ParametroCedulaTipoEleccion entity);

	public ParametroCedulaTipoEleccion findById(ParametroCedulaTipoEleccionId id);

	/**
	 * Find all ParametroCedulaTipoEleccion entities with a specific property
	 * value.
	 * 
	 * @param propertyName
	 *            the name of the ParametroCedulaTipoEleccion property to query
	 * @param value
	 *            the property value to match
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ParametroCedulaTipoEleccion> found by query
	 */
	public List<ParametroCedulaTipoEleccion> findByProperty(
			String propertyName, Object value, int... rowStartIdxAndCount);

	public List<ParametroCedulaTipoEleccion> findByValor(Object valor,
			int... rowStartIdxAndCount);

	/**
	 * Find all ParametroCedulaTipoEleccion entities.
	 * 
	 * @param rowStartIdxAndCount
	 *            Optional int varargs. rowStartIdxAndCount[0] specifies the the
	 *            row index in the query result-set to begin collecting the
	 *            results. rowStartIdxAndCount[1] specifies the the maximum
	 *            count of results to return.
	 * @return List<ParametroCedulaTipoEleccion> all
	 *         ParametroCedulaTipoEleccion entities
	 */
	public List<ParametroCedulaTipoEleccion> findAll(int... rowStartIdxAndCount);
}